<?php
/* *
 * 功能：支付宝即时到账交易接口接口调试入口页面
 * 日期：2016-02-17
 * 源码来自：资源e站（Zye.cc）
 * 资源分享：www.zye.cc
 */

?>
<?php
$title='用户中心';
include './head.php';
?>
  <div class="container" style="padding-top:70px;">
    <div class="col-xs-12 col-sm-10 col-lg-8 center-block" style="float: none;">
      <div class="panel panel-primary">
        <div class="panel-heading"><h3 class="panel-title">在线充值</h3></div>
        <div class="panel-body">
          <form action="../alipay/alipayapi.php" method="post" class="form-horizontal" role="form">
            <div class="input-group">
              <span class="input-group-addon"><span class="glyphicon glyphicon-user"><span>&nbsp;订单号码</span></span></span>
              <input type="text" id="WIDout_trade_no" name="WIDout_trade_no" class="form-control" readonly/>
            </div><br/>
            <div class="input-group">
              <span class="input-group-addon"><span class="glyphicon glyphicon-lock"><span>&nbsp;订单名称</span></span></span>
              <input type="text" id="WIDsubject" name="WIDsubject" class="form-control" required readonly/>
            </div><br/>
            <div class="input-group">
              <span class="input-group-addon"><span class="glyphicon glyphicon-cloud"><span>&nbsp;充值金额</span></span></span>
              <input type="text" id="WIDtotal_fee" name="WIDtotal_fee" class="form-control" required />
            </div><br/>
            <div class="form-group">
              <div class="col-xs-12"><input type="submit" value="支付宝----立即充值" class="btn btn-primary form-control"/></div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
<script language="javascript">
    function GetDateNow() {
        var vNow = new Date();
        var sNow = "";
        sNow += String(vNow.getFullYear());
        sNow += String(vNow.getMonth() + 1);
        sNow += String(vNow.getDate());
        sNow += String(vNow.getHours());
        sNow += String(vNow.getMinutes());
        sNow += String(vNow.getSeconds());
        sNow += String(vNow.getMilliseconds());
        document.getElementById("WIDout_trade_no").value =  sNow;
        document.getElementById("WIDsubject").value = "【改号宝】---余额充值";
        document.getElementById("WIDtotal_fee").value = "1";
    }
    GetDateNow();
</script>
</body>
</html>